﻿export default [
  {
    "path": "/",
    "redirect": "/homePage",
  },
  {
    path: '/homePage',
    name: 'homePage',
    icon: 'HomeFilled',
    component: './HomePage',
  },
  //商品管理路由
  {
    path: 'manageGoods',
    name: 'manageGoods',
    icon: 'ShoppingFilled',
    routes: [
      {
        path: 'goodsLists',
        name: 'goodsLists',
        component: './ManageGoods/GoodsLists',
      },
      {
        path: 'goodsCategory',
        name: 'goodsCategory',
        component: './ManageGoods/GoodsCategory',
      },
      {
        path: 'goodsStandard',
        name: 'goodsStandard',
        component: './ManageGoods/GoodsStandard',
      },
      {
        path: 'goodsComment',
        name: 'goodsComment',
        component: './ManageGoods/GoodsComment',
      },
      {
        path: 'editGoods/:id',
        name: 'editGoods',
        hideInMenu:true,
        component: './ManageGoods/EditGoods',
      },
      {
        path: '/manageGoods/addGoods',
        name: 'addGoods',
        hideInMenu:true,
        component: './ManageGoods/AddGoods',
      }
    ]
  },
  //订单管理路由
  {
    path: '/order',
    name: 'order',
    icon: 'ShoppingCartOutlined',
    routes:[
      //订单管理
      {
        path: '/order/orderList',
        name: 'orderList',
        component: './Order/OrderList',
      },
      //收银订单
      {
        path: '/order/cashierOrder',
        name: 'cashierOrder',
        component: './Order/CashierOrder',
      },
      //售后订单
      {
        path: '/order/afterSalesOrder',
        name: 'afterSalesOrder',
        component: './Order/AfterSalesOrder',
      },
    ]
  },
  //统计路由
  {
    path: '/statistics',
    name: 'statistics',
    icon: 'HomeFilled',
    routes:[
      //商品统计
      {
        path: '/statistics/commodity',
        name: 'commodity',
        component: './Statistics/Commodity',
      },
      //用户统计
      {
        path: '/statistics/userStatistics',
        name: 'userStatistics',
        component: './Statistics/UserStatistics',
      },
      //交易统计
      {
        path: '/statistics/transactionStatistics',
        name: 'transactionStatistics',
        component: './Statistics/TransactionStatistics',
      },
    ]
  },

  {
    path: '/distribution',
    name: 'distribution',
    icon: 'FullscreenOutlined',
    routes: [
      {
        path: '/distribution/level',
        name: 'distributionLevel',
        component: './distribution/DistributionLevel',
      },
      {
        path: '/distribution/setting',
        name: 'distributionSetting',
        component: './distribution/DistributionSetting',
      },
      {
        path: '/distribution/management',
        name: 'distributorManagement',
        component: './distribution/DistributorManagement'},]},
      {
        path:'content',
        name:'content',
        icon:'ReadOutlined',
        routes:[
          {
            path:'./content/Article',
            name:'Article',
            component: './content/Article'
          },
          {
            path:'./content/Classify',
            name:'Classify',
            component: './content/Classify'
          },
        ]
      },
      {
        path: '/customerService',
        name: 'customerService',
        icon: 'AndroidOutlined',
        routes: [
          {
            path: '/customerService/customerServiceList',
            name: 'customerServiceList',
            component: './customerService/CustomerServiceList',
          },
          {
            path: '/customerService/speechcraft',
            name: 'customerServiceIdea',
            component: './customerService/Speechcraft',
          },
          {
            path: '/customerService/guest_book',
            name: 'customerServiceGuestBook',
            component: './customerService/GuestBook'
          },
        ]
      },
  {
    path:'user',
    name:'user',
    icon:'GithubOutlined',
    routes:[
      {
        path:'./user/UserGrade',
        name:'UserGrade',
        component: './user/UserGrade'
      },
      {
        path:'./user/UserGroup',
        name:'UserGroup',
        component: './user/UserGroup'
      },
      {
        path:'./user/UserLabel',
        name:'UserLabel',
        component: './user/UserLabel'
      },
      {
        path:'./user/UserList',
        name:'UserList',
        component: './user/UserList'
      },
      {
        path:'./user/PayMember',
        name:'PayMember',
        routes:[
          {
            path:'./Camille',
            name:'Camille',
            component: './user/PayMember/Camille'
          },
          {
            path:'./ModalCamille',
            name:'ModalCamille',
            component: './user/PayMember/Camille/ModalCamille',
            hideInMenu:true,
          },
          {
            path:'./PayAgreement',
            name:'PayAgreement',
            component: './user/PayMember/PayAgreement'
          },
          {
            path:'./PayInterest',
            name:'PayInterest',
            component: './user/PayMember/PayInterest'
          },
          {
            path:'./PayRecord',
            name:'PayRecord',
            component: './user/PayMember/PayRecord'
          },
          {
            path:'./PayType',
            name:'PayType',
            component: './user/PayMember/PayType'
          },
        ]
      },
    ]
  },
  {
    path: '/login',
    layout: false,
    routes: [
      {
        path: '/login',
        routes: [
          {
            name: 'login',
            path: '/login',
            component: './Login',
          },
        ],
      },
      {
        component: './404',
      },
    ],
  },

  {
    path: '/admin',
    name: 'admin',
    icon: 'crown',
    access: 'canAdmin',
    component: './Admin',
    routes: [
      {
        path: '/admin/sub-page',
        name: 'sub-page',
        icon: 'smile',
        component: './Welcome',
      },
      {
        component: './404',
      },
    ],
  },
  {
    name: 'list.table-list',
    icon: 'table',
    path: '/list',
    component: './TableList',
  },
  //应用管理
  {
    name:'app-admin',
    path:'/appadmin',
    icon:'AppstoreOutlined',
    routes: [
      {
        path:'/appadmin/officialaccount',
        name:'officialaccount',
        routes: [
          {
            path:'/appadmin/officialaccount/imagetext',
            name:'imagetext',
            component: './AppAdmin/OfficialAccount/ImageText'
          },
          {
            path:'/appadmin/officialaccount/weixin',
            name:'weixin',
            component: './AppAdmin/OfficialAccount/WeiXin/index'
          },
          {
            path:'/appadmin/officialaccount/automaticreply',
            name:'automaticreply',
            routes:[
              {
                path:'/appadmin/officialaccount/automaticreply/keyword',
                name:'keyword',
                component: './AppAdmin/OfficialAccount/AutomaticReply/Keyword'
              },
              {
                path:'/appadmin/officialaccount/automaticreply/lnvalidkeyword',
                name:'lnvalidkeyword',
                component: './AppAdmin/OfficialAccount/AutomaticReply/LnvalidKeyword'
              }
            ]
          },
        ]
      }
    ]
  },
  //应用管理结束

  //维护管理
  {
    name:'maintenance',
    path:'/maintenance',
    icon:'ToolOutlined',
    routes: [
      {
        path:'/maintenance/deveconfig',
        name:'deveconfig',
        routes: [
          {
            path:'/maintenance/deveconfig/collocation',
            name:'collocation',
            component: './Maintenance/DeveConfig/Collocation',
          },
          {
            path: '/maintenance/deveconfig/configurationlist',
            name:'configurationlist',
            hideInMenu:true,
            component: './Maintenance/DeveConfig/ConfigurationList'
          },
          {
            path:'/maintenance/deveconfig/CombinedData',
            name:'combineddata',
            component: './Maintenance/DeveConfig/CombinedData'
          }
        ]
      },
      {
        path: '/maintenance/security',
        name: 'security',
        routes: [
          {
            path:'/maintenance/security/databackup',
            name:'databackup',
            component: './Maintenance/Security/DataBackup'
          },
          {
            path:'/maintenance/security/fileverification',
            name:'fileverification',
            component: './Maintenance/Security/FileVerification'
          },
          {
            path:'/maintenance/security/systemLog',
            name:'systemLog',
            component: './Maintenance/Security/SystemLog'
          }
        ]
      },
      {
        path: '/maintenance/Logistics',
        name: 'logistics',
        component: './Maintenance/Logistics',
      },
      {
        path: '/maintenance/attachment',
        name: 'attachment',
        component: './Maintenance/Attachment',
      },
      {
        path: '/maintenance/citydata',
        name: 'citydata',
        component: './Maintenance/CityData',
      },
      {
        path: '/maintenance/externalinterface',
        name: 'externalinterface',
        component: './Maintenance/ExternalInterface',
      },
    ]
  },
// ----------chenfei-------------
  {
    path: '/Management',
    name: 'management',
    icon: 'SettingOutlined',
    routes: [
      {
        name: 'system',
        path: '/Management/System/index',
        component: './Management/System/index'
      },
      {
        name: 'permissions',
        path: '/Management/Permissions',
        routes: [
          {
            name:'administrator',
            path:'/Management/Permissions/Administrator',
            component: './Management/Permissions/Administrator'
          },
          {
            name:'management',
            path:'/Management/Permissions/Management',
            component: './Management/Permissions/Management'
          },
          {
            name:'rule',
            path:'/Management/Permissions/Rule',
            component: './Management/Permissions/Rule'
          },
        ]
      },
      {
        name: 'Delivery',
        path: '/Management/Delivery',
        routes: [
          {
            path: '/Management/Delivery/Courier',
            name: 'courier',
            component: './Management/Delivery/Courier'
          },
          {
            path: '/Management/Delivery/Pick_up_point',
            name: 'pick',
            routes: [
              {
                path: '/Management/Delivery/Pick_up_point/Point',
                name: 'Point',
                component: './Management/Delivery/Pick_up_point/Point',
              },
              {
                path: '/Management/Delivery/Pick_up_point/Verifier',
                name: 'Verifier',
                component: './Management/Delivery/Pick_up_point/Verifier',
              },
              {
                path: '/Management/Delivery/Pick_up_point/Write_order',
                name: 'Write_order',
                component: './Management/Delivery/Pick_up_point/Write_order',
              },
            ]
          },
          {
            path: '/Management/Delivery/Freight',
            name: 'freight',
            component: './Management/Delivery/Freight'
          },
        ]
      },
      {
        name: 'Message',
        path: '/Management/Message',
        routes: [
          {
            name: 'We_Chat',
            path: '/Management/Message/We_Chat_Template',
            component: './Management/Message/We_Chat_Template',
          },
          {
            name: 'Subscribe',
            path: '/Management/Message/Subscribe',
            component: './Management/Message/Subscribe',
          },
          {
            name: 'Message_Settings',
            path: '/Management/Message/Message_Settings',
            component: './Management/Message/Message_Settings',
          },
        ]
      },
    ]
  },

  //维护管理结束

  //  ------------xubuyun up--------------
  {
    name: 'marketing',
    icon: 'SendOutlined',
    path: '/Marketing',
    routes: [
      {
        name: 'coupon',
        icon: 'smile',
        path: '/Marketing/coupon',
        routes: [
          {
            name: 'couponList',
            icon: 'smile',
            path: '/Marketing/coupon/couponList',
            component: './Marketing/coupon/couponList',

          },
          {
            path: '/Marketing/coupon/couponList/components/create',
            component: './Marketing/coupon/couponList/components/create',
          },
          {
            path: '/Marketing/coupon/couponList/components/collectionRecord',
            component: './Marketing/coupon/couponList/components/collectionRecord',
          },
          {
            name: 'collectionRecord',
            icon: 'smile',
            path: '/Marketing/coupon/collectionRecord',
            component: './Marketing/coupon/collectionRecord',
          },
        ]
      },
      {
        name: 'bargainManagement',
        icon: 'smile',
        path: '/Marketing/bargainManagement',
        routes: [
          {
            name: 'bargainGoods',
            icon: 'smile',
            path: '/Marketing/bargainManagement/bargainGoods',
            component: './Marketing/bargainManagement/bargainGoods',
          },
          {
            name: 'bargainList',
            icon: 'smile',
            path: '/Marketing/bargainManagement/bargainList',
            component: './Marketing/bargainManagement/bargainList',

          },
        ]
      },
      {
        name: 'groupManagement',
        icon: 'smile',
        path: '/Marketing/groupManagement',
        routes: [
          {
            name: 'groupGoods',
            icon: 'smile',
            path: '/Marketing/groupManagement/groupGoods',
            component: './Marketing/groupManagement/groupGoods',
          },
          {
            name: 'groupList',
            icon: 'smile',
            path: '/Marketing/groupManagement/groupList',
            component: './Marketing/groupManagement/groupList',

          },
        ]
      },
      {
        name: 'spikeManagement',
        icon: 'smile',
        path: '/Marketing/spikeManagement',
        routes: [
          {
            name: 'spikeGoods',
            icon: 'smile',
            path: '/Marketing/spikeManagement/spikeGoods',
            component: './Marketing/spikeManagement/spikeGoods',

          },
          {
            name: 'spikeConfiguration',
            icon: 'smile',
            path: '/Marketing/spikeManagement/spikeConfiguration',
            component: './Marketing/spikeManagement/spikeConfiguration',
          },
        ]
      },
      {
        name: 'pointsManagement',
        icon: 'smile',
        path: '/Marketing/pointsManagement',
        routes: [
          {
            name: 'pointsConfiguration',
            icon: 'smile',
            path: '/Marketing/pointsManagement/pointsConfiguration',
            component: './Marketing/pointsManagement/pointsConfiguration',

          },
          {
            name: 'pointsLog',
            icon: 'smile',
            path: '/Marketing/pointsManagement/pointsLog',
            component: './Marketing/pointsManagement/pointsLog',
          },
          {
            name: 'pointsGoods',
            icon: 'smile',
            path: '/Marketing/pointsManagement/pointsGoods',
            component: './Marketing/pointsManagement/pointsGoods',

          },
          {
            name: 'pointsOrder',
            icon: 'smile',
            path: '/Marketing/pointsManagement/pointsOrder',
            component: './Marketing/pointsManagement/pointsOrder',
          },
        ]
      },
      {
        name: 'broadcastManagement',
        icon: 'smile',
        path: '/Marketing/broadcastManagement',
        routes: [
          {
            name: 'Studio',
            icon: 'smile',
            path: '/Marketing/broadcastManagement/Studio',
            component: './Marketing/broadcastManagement/Studio',

          },
          {
            name: 'bargainGoods',
            icon: 'smile',
            path: '/Marketing/broadcastManagement/bargainGoods',
            component: './Marketing/broadcastManagement/bargainGoods',
          },
          {
            name: 'Anchor',
            icon: 'smile',
            path: '/Marketing/broadcastManagement/Anchor',
            component: './Marketing/broadcastManagement/Anchor',
          },
        ]
      },
      {
        name: 'JiugonggeLottery',
        icon: 'smile',
        path: '/Marketing/JiugonggeLottery',
        component: './Marketing/JiugonggeLottery/',
      },
      {
        name: 'discountPackage',
        icon: 'smile',
        path: '/Marketing/discountPackage',
        component: './Marketing/discountPackage',
      },
    ]
  },
  {
    name: 'financial',
    icon: 'SendOutlined',
    path: '/Financial',
    routes: [
      {
        name: 'financialOperations',
        path: '/Financial/financialOperations',
        routes: [
          {
            name: 'withdrawalApplication',
            path: '/Financial/financialOperations/withdrawalApplication',
            component: './Financial/financialOperations/withdrawalApplication'
          },
          {
            name: 'invoiceManagement',
            path: '/Financial/financialOperations/invoiceManagement',
            component: './Financial/financialOperations/invoiceManagement'
          }
        ]
      },
      {
        name: 'financialRecords',
        path: '/Financial/financialRecords',
        routes: [
          {
            name: 'rechargeRecord',
            path: '/Financial/financialRecords/rechargeRecord',
            component: './Financial/financialRecords/rechargeRecord'
          },
          {
            name: 'fundingRecords',
            path: '/Financial/financialRecords/fundingRecords',
            component: './Financial/financialRecords/fundingRecords'
          }
        ]
      },
      {
        name: 'commission',
        path: '/Financial/commission',
        routes: [
          {
            name: 'commissionRecord',
            path: '/Financial/commission/commissionRecord',
            component: './Financial/commission/commissionRecord'
          }
        ]
      },
    ]
  },
  //  ------------xubuyun over--------------

  {
    component: './404',
  },

]
